/**
 * 
 */
package com.dlplay.flightinfo.db.business;

import javax.persistence.EntityManager;

import com.dlplay.flightinfo.data.Airport;
import com.dlplay.flightinfo.db.EntityOperator;


/**
 * @author y140zhan
 *
 */
public class AirportEntity extends EntityOperator<Airport> {
	
	public AirportEntity(EntityManager em)
	{
		setEntityManager(em);
		validate();
		getInstance();
	}
	
	public AirportEntity(EntityManager em, Object id)
	{
		setEntityManager(em);
		validate();
		getInstance();
		
		loadInstance(id);
	}
	
	public Airport loadInfo(Object id)
	{
		return loadInstance(id);
	}
	
	//TODO add some business logic here

}
